Echo2SIOInt.asm
Language: 8080 Assembly
Last Modified: 2022-11-15 1:50:54 AM UTC
File Size: 1055 bytes
Last Modified: 2022-11-15 1:50:54 AM UTC
File Size: 1055 bytes
http://www.penguinstew.ca/example/AltairSerialEcho/Echo2SIOInt.asm
;Read2SIOstatusregister
ORG0000H
LXISP0100H;0000:310001Initalizestackpointer
MVIA03H;0003:3E03
OUT10H;0005:D310Rest2SIOport
MVIA95H;0007:3E95
OUT10H;0009:D310Set2SIOportto8n1enable2SIOinterupts
EI;000B:FBEnableCPUinterupts
LOOP:NOP;000C:00
NOP;000D:00
NOP;000E:00
JMPLOOP;000F:C30C00Programloop
ORG0038H;InteruptHandler
PUSHA;0038:F5SavevalueofaccumulatorandPSW
IN11H;0039:DB11
OUT11H;003B:D311Echovalue
POPA;003D:F1RestoreaccumulatorandPSW
EI;003E:FBRenableinterupts
RET;003F:C9return
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19